﻿using System;
using System.Text;
using Common;

public partial class SetPublishingItem : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack) return;
        LoginUtil.NeedLogin(Page);
        string token = Request.Cookies["token"].Value;
        if (token.Length == 0) return;
        TaoBao tb = new TaoBao(token);
        string aa = tb.UserSeller("user_id,nick,sex,seller_credit");
        StringBuilder sb = new StringBuilder();
        //foreach (SellerCat cat in response.SellerCats)
        //{
        //    sb.AppendFormat("<span><label><input type=\"checkbox\" value={0} name=Cid />{1}</label></span>", cat.Cid, cat.Name);
        //}
        //sb.Append("<div style=\"clear:both\"></div>");
        Util.CreatFile("1.txt", aa);
        lbCats.Text = aa.ToString();
    }
}